<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <button >上一页</button>
    <div>
      <img :src="imgs[curIndex]" alt="">
    </div>
    <button v-show="curIndex < imgs.length - 1" @click="nextPage">下一页</button>
  </div>
  <script src="https://unpkg.com/vue@2.7.14/dist/vue.js"></script>
  <script>

    const app = new Vue({
      el: '#app',
      data: {
        // 当前的索引
        curIndex: 0,
        // 图片数组
        imgs: [
          './imgs/11-00.gif',
          './imgs/11-01.gif',
          './imgs/11-02.gif',
          './imgs/11-03.gif',
          './imgs/11-04.png',
          './imgs/11-05.png',
        ]
      },
      methods: {
        // 下一页
        nextPage() {
          this.curIndex ++
        }
      }
    })

  </script>
</body>
</html>